import router from "./router";
// import { ElMessage } from "element-plus";
import NProgress from "nprogress";


NProgress.configure({ showSpinner: false });

const whiteList = ["/login", "/register", "/index"];

router.beforeEach((to, from, next) => {
  NProgress.start();
  next();
  NProgress.done();
  return;

});

router.afterEach(() => {
  NProgress.done();
});
